package com.group02.community.entity.user;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("sys_role")
public class SysRole {

  @TableId
  private long roleId;
  private String roleName;
  private String roleKey;
  private long roleSort;
  private String dataScope;
  private long menuCheckStrictly;
  private long deptCheckStrictly;
  private String status;
  private String delFlag;
  private String createBy;

  @TableField(value = "create_time" ,fill = FieldFill.INSERT)
  private LocalDateTime createTime;
  private String updateBy;
  @TableField(value = "update_time" ,fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;
  private String remark;

  @TableField(exist = false)
  private List<Long> menuIds;

  @TableField(exist = false)
  private List<Long> deptIds;


}
